<%@ include file="../base.jsp"%>
<%@ include file="../checkLogin.jsp"%>

<head>
<title>Cadastro de Representante</title>
<style type="text/css">
#sendRepresentanteInsert_tipoRepresentante {
	display: none;
}
</style>
</head>
<body>
	<a class="backButton"
		href="${pageContext.request.contextPath}/pages/menu.jsp"><s:text
			name="button.back" /></a>
	<div class="boxHeader">
		<h2 class="formTitle">
			<s:text name="representante.title" />
		</h2>
		<p class="formInstructions" style="border-bottom: 1px solid #AAA;">
			<s:text name="representante.instructions" />
		</p>
	</div>
	<s:form action="sendRepresentanteInsert" method="post" namespace="/">
		<s:textfield name="nome" key="representante.nome" size="20"></s:textfield>
		<s:textfield name="banco" key="representante.banco" size="20"></s:textfield>
		<s:textfield name="agencia" key="representante.agencia" size="20"></s:textfield>
		<s:textfield name="contaCorrente" key="representante.contaCorrente"
			size="20"></s:textfield>
		<s:textfield name="telefone1" key="representante.telefone1" size="20"></s:textfield>
		<s:textfield name="telefone2" key="representante.telefone2" size="20"></s:textfield>
		<s:textfield name="email" key="representante.email" size="20"></s:textfield>
		<s:combobox list="{'direto', 'preposto'}" headerKey="-1" name="tipoRepresentante"
			headerValue="Escolha um tipo" key="representante.tipoRepresentante"></s:combobox>

		<s:submit method="execute" key="button.submit" align="center" />
	</s:form>

	<s:if test="hasActionErrors()">
		<div align="center">
			<div class="ui-state-error ui-corner-all"
				style="padding: 0 .7em; width: 30%; margin: 3em; box-shadow:0px 0px 20px #a33;">
				<span class="ui-icon ui-icon-alert"
					style="float: left; margin-right: .3em;"></span>
				<s:actionerror />
			</div>
		</div>
	</s:if>
	<s:if test="hasActionMessages()">
		<div align="center">
			<s:actionmessage />
		</div>
	</s:if>

</body>
